<div class="panel panel-default">	
 <ul class="nav nav-tabs" style="margin-top: 5px; padding-left: 10px;">
  
    <li class="{if (empty($rd) || $rd=='index')}active{/if}">
    <a href="{php echo $this->createWebUrl('news', array('op' => 'index'))}"> 
         {$submenus[$operation]['name']}列表</a></li>
    <li  class="{if ( $rd=='add')}active{/if}">
    <a href="{php echo $this->createWebUrl('news', array('op' => 'add','rd'=>'add'))}">新增 </a></li>
 
</ul>
<div class="panel-body table-responsive">
        <form action="{php echo $this->createWebUrl('news', array('op' => 'index' ))}" method="post" onsubmit="return formcheck(this)">
           
              
                    <table class="table table-hover">
                        <thead class="navbar-inner">
                            <tr>
                                 <th style="width:5%;"></th> 	
                                <th style="width:6%;">顺序</th>
                                <th style="width:50%;"> 标题</th>
                                <th style="width:15%;"> 类型 </th>
                                
                                <th style="width:10%;">操作</th>
                            </tr>	
                        </thead>
                        <tbody>	
                            {if $list}	
                            {loop $list $row}
                            <tr>
                                <td>{$row['id']}</td> 
                                <td><input type="text" size="2" class="form-control"  name="displayorder[{$row['id']}]" value="{$row['orderid']}"></td>
                                <td>
                                    {if $row['thumb']}
                                    <img src="{php echo tomedia($row['thumb']);}" 
                                    width='120' height="80" onerror="$(this).remove()"  
                                         style=' float:left;margin-right:15px;' />
                                    {/if}
                                    <div class="type-parent" >
                                        <p>
                                            
                                            {$row['title']} 
                                        </p>
                                        {if $row['gpoun_address']}
                                        <a href="{$row['gpoun_address']}" target="_blank">
                                            <span style="color: #3296fa;"><i class="fa fa-sign-out color-gray"></i> 
                                                外链公众号文章</span></a>
                                        {/if}
                                        
                                        <p style="color:#999">
                                            {if $row['disabled']==1}
                                            <span class='label label-default'>隐藏</span>
                                            {else}	
                                            <span class='label label-success'>显示</span>	
                                            {/if}
                                            发布：{$row['addtime']} 阅读({$row['onclick']}) </p> 
                                    </div>
                                </td>
                                <td>
                                    <p>{$row['fname']}</p>
                                    
                                </td>
                               	
                                <td>
                                    
                                    <a href="{php echo $this->createWebUrl('news', array('op' => 'add', 'id' => $row['id']))}"
                                       class="btn btn-default btn-sm" title="编辑">
                                        <i class="fa fa-edit"></i></a>&nbsp;&nbsp;
                                        <a href="{php echo $this->createWebUrl('news', array('op' => 'delete', 'id' => $row['id']))}"
                                           onclick="return confirm('确认删除此分类吗？');return false;" class="btn btn-default btn-sm"
                                           title="删除"><i class="fa fa-times"></i></a>
                                </td>
                            </tr>	
                            {/loop}
                            {else}
                            <tr>
                                <td colspan="5">
                                    <a href="{php echo $this->createWebUrl('news', array('op' => 'add'))}">
                                        <i class="fa fa-plus-sign-alt"></i> 发布资讯</a>
                                </td>			
                            </tr>	
                            {/if}	
                            <tr>
                                <td colspan="5">
                                    <input name="submit" type="submit" class="btn btn-primary" value="提交">
                                    <input type="hidden" name="token" value="{$_W['token']}" />	
                                </td>		
                            </tr>	
                        </tbody>	
                    </table>	
             
        </form>	
    </div>
    {$pager}
</div>